<template>
  <el-input
    v-model="modelValue"
    type="password"
    @input="handleInput"
    @blur="handleBlur"
  ></el-input>
</template>

<script setup>
const modelValue = defineModel();
const emit = defineEmits(['change', 'blur']);

const handleInput = (val) => {
  emit('change', val);
};

const handleBlur = (event) => {
  emit('blur', event);
};
</script>